package com.example.util.redis.redisUtil;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.data.redis.core.RedisTemplate;

@Configuration
public class RedisAutoConfig {


    @Bean
    @DependsOn(value = "ctRedisTemplate")
    public RedisUtil redisUtil(RedisTemplate ctRedisTemplate) {
        RedisUtil redisUtil = new RedisUtil();
        redisUtil.setRedisTemplate(ctRedisTemplate);
        return redisUtil;
    }
}
